// En2CnMFCDlg.h : header file
//

#if !defined(AFX_EN2CNMFCDLG_H__7984D3FA_2281_4828_B7BF_5BC5C31F2528__INCLUDED_)
#define AFX_EN2CNMFCDLG_H__7984D3FA_2281_4828_B7BF_5BC5C31F2528__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CEn2CnMFCDlg dialog

class CEn2CnMFCDlg : public CDialog
{
// Construction
public:
	CEn2CnMFCDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CEn2CnMFCDlg)
	enum { IDD = IDD_EN2CNMFC_DIALOG };
	CEdit	m_textInputWord;
	CListBox	m_listWords;
	CEdit	m_textResult;
	//}}AFX_DATA

	t_enWordItem g_AllEnWords[ALL_WORDS_NUM];
	t_wordExplanation g_AllExplanation[ALL_EXPLANATION_NUM];
	int initLib(u8 libType);
	int cleanLib(u8 libType);
	int findInLib(const char *word);

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEn2CnMFCDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CEn2CnMFCDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonOk();
	afx_msg void OnChangeEditInputWord();
	afx_msg void OnSelchangeListWords();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EN2CNMFCDLG_H__7984D3FA_2281_4828_B7BF_5BC5C31F2528__INCLUDED_)
